package   com.yunding.house.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yunding.house.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 用户登录账户表 Mapper 接口
 * </p>
 *
 * @author linyang
 * @since 2019-08-15
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

    /**
     * invitationCode查找user
     * @return
     */
    User selectByinvcode(String invitationCode);

    /**
     * openid查找user
     * @return
     */
    User selectByopenid(String openid);

    /**
     * username查找user
     * @return
     */
    @Select("select * from user where username = #{username}")
    User selectByusername(String username);


}
